package net.println.kotlin.chapter2

val string: String = "HelloWorld"
val fromChars: String = String(charArrayOf('H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd'))

fun main(args: Array<String>) {
    println(string == fromChars)
    println(string === fromChars)

    println("接下来我们要输出" + string)

    val arg1: Int = 1
    val arg2: Int = 2
    println("" + arg1 + "+" + arg2 + "=" + (arg1+arg2))
    println("$arg1+$arg2=${arg1 + arg2}")

    val sayHello: String = "Hello \"Trump\""
    println(sayHello)

    val rawString: String = """
        \t
        \n
        $arg1
        $ arg1
    """
    println(rawString)
}